/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.gen.entity;

import org.hibernate.validator.constraints.Length;
import com.soccer.cms.modules.gen.entity.GenScheme;

import com.soccer.cms.common.persistence.DataEntity;

/**
 * 关联实体Entity
 * @author zouqh
 * @version 2015-05-25
 */
public class GenReferentity extends DataEntity<GenReferentity> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private GenScheme genScheme;		// 方案
	private String refpackage;		// 包路径
	private String refid;		// 关联属性
	
	public GenReferentity() {
		super();
	}

	public GenReferentity(String id){
		super(id);
	}

	@Length(min=0, max=50, message="编码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public GenScheme getGenScheme() {
		return genScheme;
	}

	public void setGenScheme(GenScheme genScheme) {
		this.genScheme = genScheme;
	}
	
	@Length(min=0, max=500, message="包路径长度必须介于 0 和 500 之间")
	public String getRefpackage() {
		return refpackage;
	}

	public void setRefpackage(String refpackage) {
		this.refpackage = refpackage;
	}
	
	@Length(min=0, max=50, message="关联属性长度必须介于 0 和 50 之间")
	public String getRefid() {
		return refid;
	}

	public void setRefid(String refid) {
		this.refid = refid;
	}
	
}